const resolve = dir => require('path').join(__dirname, dir)
module.exports = {
  productionSourceMap: false,
  configureWebpack: {
    devtool: false,
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
  devServer: {
    open: false,
    host: '0.0.0.0',
    port: 8080,
    https: false,
    hot: true,
    hotOnly: false,
    overlay: {
      warnings: true,
      errors: true
    },
    proxy: {
      '^/(a|b)': {
        target: 'http://xxx.xx.xx',
        changeOrigin: true
      }
    }
  }
}
